lib/core: Add a "break hardlink" API
authorColin Walters <walters@verbum.org>
Thu, 14 Dec 2017 16:10:35 +0000 (11:10 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 14 Dec 2017 21:56:26 +0000 (21:56 +0000)
commit4a2e08148de1ada60ba854b21489159229ed08e3
treee82cc04070c3b8f4e6ba7004eef6d08a9dc77d4d
parentd340fe406079c4b3c2b62af2a1c10cd9afd44b09
lib/core: Add a "break hardlink" API

This imports the code from rpm-ostree:
https://github.com/projectatomic/rpm-ostree/blob/9ff9f6c997d914cb7d97d6b59d8045ba64a1882c/src/libpriv/rpmostree-util.c#L742

I plan to use this for rofiles-fuse to implement
copyup: https://github.com/ostreedev/ostree/issues/1377

But it's just obviously generally useful for projects using
libostree I think.

Closes: #1378
Approved by: jlebon
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-core.c
src/libostree/ostree-core.h
tests/test-basic-c.c